/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rcnss.ui.form;

import com.rcnss.data.Subscribe;
import com.rcnss.data.User;
import com.rcnss.ui.form.field.factory.SubscribeFieldFactory;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import java.util.Arrays;

/**
 *
 * @author Guesmi
 */
public class SubscribeFrom extends VerticalLayout{
    private String Titre = new String("Insciption pour un nouveau client");
    private Subscribe subs = new Subscribe();
    private EditForm form = new EditForm(subs,
                        new SubscribeFieldFactory());

    public SubscribeFrom()
    {
        this.setSizeUndefined();
        /*this.form.setVisibleItemProperties(Arrays.asList(new String[] {
        "Name", "LastName", "Mat", "CreatedDate"
        }));*/
        this.form.setCaption(Titre);
        this.form.getFooter().addComponent(new Button("Apply"));
        this.addComponent(form);
    }
}
